From 609a23a0ae5d7deb4d3e90c95de60ca25c9e7bf2 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 18 Mar 2014 16:33:06 +0000 Subject: [PATCH] libxl: hotplug scripts: stdout >& stderr MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Plumb hotplug scripts' stdout to stderr. That way if they print anything (which really they shouldn't), it won't get mixed up with the application's stdout. (Eg, perhaps with an xl migration stream...) Signed-off-by: Ian Jackson CC: Roger Pau Monné CC: Vasiliy Tolstov Acked-by: Ian Campbell --- tools/libxl/libxl_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/libxl_device.c b/tools/libxl/libxl_device.c index ba7d100d0e..90f76b7a06 100644 --- a/tools/libxl/libxl_device.c +++ b/tools/libxl/libxl_device.c @@ -1031,7 +1031,7 @@ static void device_hotplug(libxl__egc *egc, libxl__ao_device *aodev) if (!pid) { /* child */ - libxl__exec(gc, -1, -1, -1, args[0], args, env); + libxl__exec(gc, -1, 2, -1, args[0], args, env); /* notreached */ abort(); } -- 2.30.2